﻿using System;
using System.Windows;

namespace NavFx
{
	/// <summary>
	/// Arguments returned for PageLoadCompleted event
	/// </summary>
	public class PageLoadCompletedEventArgs: RoutedEventArgs
	{
		#region Private members

		private string path = String.Empty;

		#endregion

		#region Public members

		/// <summary>
		/// Path of requested page that triggered load request
		/// </summary>
		public string Path
		{
			get
			{
				return this.path;
			}

			internal set
			{
				this.path = value;
			}
		}

		#endregion

		#region constructors

		/// <summary>
		/// Default constuctor
		/// </summary>
		public PageLoadCompletedEventArgs()
			: base()
		{
			//nothing to do
		}

		/// <summary>
		/// Constructor overload supporting population of Path property
		/// </summary>
		/// <param name="path">Path of requested page</param>
		public PageLoadCompletedEventArgs(string path)
			: base()
		{
			this.Path = path;
		}

		#endregion
	}
}
